<!DOCTYPE html>
<html>
    <head>
        <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    </head>
    <body>
        <div id="Application">
            <input type="text" v-get-focus />
            <input />
        </div>
        <script>
            const App = Vue.createApp({

            });
            App.directive('getFocus',{
                mounted(el){
                    console.log(el)
                    el.focus()
                }
            })
            App.mount("#Application");
        </script>
    </body>
</html>